
package com.xuxk.project.library.bean;
import java.io.Serializable;

import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.EqualsBuilder;

/**
 * XuxkBooking Base Java Bean, base class for the model, mapped directly to database table
 * 
 * Avoid changing this file if not necessary, will be overwritten. 
 * @author 橙云科技有限公司
 * 课本信息
 */
public class XuxkBooking  implements Serializable {

    protected Integer id;
	protected String bName;
	protected Integer lId;
	protected Integer bType;
	protected Integer bStorageFloor;
	protected String bRemark;
	protected Integer bStatus;


	/**
	 * Default Empty Constructor for class XuxkBooking
	 */
	public XuxkBooking () {
		super();
	}
	
	/**
	 * Default Key Fields Constructor for class XuxkBooking
	 */
	public XuxkBooking (
		 Integer in_id
        ) {
		this.setId(in_id);
    }

    

	/**
	 * 	 * @return Integer
	 */
	public Integer getId() {
		return this.id;
	}
	
	/**
	 * Set the id
	 */	
	public void setId(Integer aValue) {
		this.id = aValue;
	}	

	/**
	 * 课本名称	 * @return String
	 */
	public String getBName() {
		return this.bName;
	}
	
	/**
	 * Set the bName
	 * @spring.validator type="required"
	 */	
	public void setBName(String aValue) {
		this.bName = aValue;
	}	

	/**
	 * 所属图书馆	 * @return Integer
	 */
	public Integer getLId() {
		return this.lId;
	}
	
	/**
	 * Set the lId
	 * @spring.validator type="required"
	 */	
	public void setLId(Integer aValue) {
		this.lId = aValue;
	}	

	/**
	 * 课本所属科目：文学、社会学。。。	 * @return Integer
	 */
	public Integer getBType() {
		return this.bType;
	}
	
	/**
	 * Set the bType
	 */	
	public void setBType(Integer aValue) {
		this.bType = aValue;
	}	

	/**
	 * 课本存放楼层	 * @return Integer
	 */
	public Integer getBStorageFloor() {
		return this.bStorageFloor;
	}
	
	/**
	 * Set the bStorageFloor
	 */	
	public void setBStorageFloor(Integer aValue) {
		this.bStorageFloor = aValue;
	}	

	/**
	 * 备注	 * @return String
	 */
	public String getBRemark() {
		return this.bRemark;
	}
	
	/**
	 * Set the bRemark
	 */	
	public void setBRemark(String aValue) {
		this.bRemark = aValue;
	}	

	/**
	 * 是否已上架：1-是；0-否	 * @return Integer
	 */
	public Integer getBStatus() {
		return this.bStatus;
	}
	
	/**
	 * Set the bStatus
	 */	
	public void setBStatus(Integer aValue) {
		this.bStatus = aValue;
	}	

	/**
	 * @see Object#equals(Object)
	 */
	@Override
	public boolean equals(Object object) {
		if (!(object instanceof XuxkBooking)) {
			return false;
		}
		XuxkBooking rhs = (XuxkBooking) object;
		return new EqualsBuilder()
				.append(this.id, rhs.id)
				.append(this.bName, rhs.bName)
				.append(this.lId, rhs.lId)
				.append(this.bType, rhs.bType)
				.append(this.bStorageFloor, rhs.bStorageFloor)
				.append(this.bRemark, rhs.bRemark)
				.append(this.bStatus, rhs.bStatus)
				.isEquals();
	}

	/**
	 * @see Object#hashCode()
	 */
	@Override
	public int hashCode() {
		return new HashCodeBuilder(-82280557, -700257973)
				.append(this.id) 
				.append(this.bName) 
				.append(this.lId) 
				.append(this.bType) 
				.append(this.bStorageFloor) 
				.append(this.bRemark) 
				.append(this.bStatus) 
				.toHashCode();
	}

	/**
	 * @see Object#toString()
	 */
	@Override
	public String toString() {
		return new ToStringBuilder(this)
				.append("id", this.id) 
				.append("bName", this.bName) 
				.append("lId", this.lId) 
				.append("bType", this.bType) 
				.append("bStorageFloor", this.bStorageFloor) 
				.append("bRemark", this.bRemark) 
				.append("bStatus", this.bStatus) 
				.toString();
	}

	/**
	 * Return the name of the first key column
	 */

}